import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 商品
 */
export function addPurchase(params) {
    return request.globalRequest(apis.addPurchase, 'POST', params)
}
export function delPurchase(params) {
    return request.globalRequest(apis.delPurchase, 'POST', params)
}
export function getPurchaseList(params) {
    return request.globalRequest(apis.getPurchaseList, 'POST', params)
}
export function getAllPurchaseList(params) {
    return request.globalRequest(apis.getAllPurchaseList, 'POST', params)
}
export function updatePurchase(params) {
    return request.globalRequest(apis.updatePurchase, 'POST', params)
}
export function getStock(params) {
    return request.globalRequest(apis.getStock, 'POST', params)
}

export function getPurchaseBySku(params) {
    return request.globalRequest(apis.getPurchaseBySku, 'POST', params)
}

export function getPurchaseForTable(params) {
    return request.globalRequest(apis.getPurchaseForTable, 'POST', params)
}

export function purchaseSearchByJdCode(params) {
    return request.globalRequest(apis.purchaseSearchByJdCode, 'POST', params)
}
export function purchasePayBatch(params) {
    return request.globalRequest(apis.purchasePayBatch, 'POST', params)
}
export function purchaseBindGoods(params) {
    return request.globalRequest(apis.purchaseBindGoods, 'POST', params)
}



export default {
	addPurchase,
	delPurchase,
	getPurchaseList,
	getAllPurchaseList,
	getStock,
	getPurchaseBySku,
	getPurchaseForTable,
	purchaseSearchByJdCode,
	purchasePayBatch,
	purchaseBindGoods,
	updatePurchase
}